<!--
 * @description  : 市管-考核计划执行item
 * @descriptionDetail: 市管-考核计划执行item
 * @copyright    : 浙江烟草
 * @author       : mc
 * @create       : 2022-08-09 14:43:02
-->
<template>
  <view class="lt-root">
    <view @tap="itemClick">
      <view class="lt-row-space">
        <view>
          <text class="lt-left-label">
            主体类型：
          </text>
          <text class="lt-right-value">
            {{ itemInfo.taskSubjectName }}
          </text>
        </view>
        <view style="flex-shrink: 0;">
        </view>
      </view>
      <view class="lt-row">
        <text class="lt-left-label">
          企业名称：
        </text>
        <text class="lt-right-value">
          {{ itemInfo.companyName }}
        </text>
      </view>
      <view class="lt-row">
        <text class="lt-left-label">
          经营人：
        </text>
        <text class="lt-right-value">
          {{ itemInfo.managerName }}
        </text>
      </view>
      <view class="lt-row">
        <text class="lt-left-label">
          联系电话：
        </text>
        <text class="lt-right-value">
          {{ itemInfo.retailTel }}
        </text>
      </view>
      <view class="lt-row">
        <text class="lt-left-label">
          经营地址：
        </text>
        <text class="lt-right-value">
          {{ itemInfo.businessAddr }}
        </text>
      </view>
    </view>
    <view style="padding:24rpx 0" v-if="M_SAMPLING_CHECK_STATUS[0].bcbCode == itemInfo.status">
      <u-line color="#DFE0E1"></u-line>
    </view>
    <u-row gutter="16" v-if="M_SAMPLING_CHECK_STATUS[0].bcbCode == itemInfo.status">
      <u-col span="6"> 
        <u-icon name="trash-fill" color="#ff0000" size="36" label="删除" @click="delPlan(itemInfo.checkUuid)"></u-icon>
      </u-col>
      <u-col span="6">
        <u-icon name="edit-pen-fill" color="#2979ff" size="36" label="编辑" @click="handlerPlanDetail(itemInfo)"></u-icon>
      </u-col> 
    </u-row>
  </view>
</template>

<script>
export default{
  name:"ListItemMprEvaluation",
  props:{
    itemInfo:{
      type: Object,
      default:() => { return {} },
    },
  },
  data(){
    return {
      M_SAMPLING_CHECK_STATUS: this.$u.dic.getDicByKeyCode(this.$u.dic.DIC_KEYS.M_SAMPLING_CHECK_STATUS),   // 获取字典
    };
  },
  created() {
    console.log(this.itemInfo);
  },
  methods:{
    itemClick(){
      this.setRouteParam(this.itemInfo);
      // 跳转到 窝点的详情页面
      this.$u.route("pages/mprEvaluation/mprEvaluationInfo");
    },
    delPlan(id){
      this.$emit("delHandle",id)
    },
    handlerPlanDetail(info){
      this.$emit("detailHandle",info)
    },
  },
}
</script>

<style scoped lang="scss">
@import "../list_item.scss";
.link{
  border-bottom: 1px solid #DFE0E1;
  padding-bottom: 24rpx;
}
</style>